package com.bymboy.emos.wx.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Package: com.bymboy.emos.wx.config.shiro
 * @ClassName: OAuth2Token
 * @Author: My
 * @CreateTime: 2021/9/2 10:52
 * @Description:
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
